package org.aepscolombia.platform.models.entity;
// Generated Jan 13, 2014 2:36:33 PM by Hibernate Tools 3.2.1.GA


import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * ChemicalFertilizers generated by hbm2java
 */
@Entity
@Table(name="chemical_fertilizers"
    ,catalog="madr_bd10"
)
public class ChemicalFertilizers  implements java.io.Serializable {


     private Integer idCheFer;
     private String nameCheFer;
     private Boolean statusCheFer;
     private Set chemicalFertilzerCompositions = new HashSet(0);
     private Set chemicalFertilizationses = new HashSet(0);

    public ChemicalFertilizers() {
    }

    public ChemicalFertilizers(String nameCheFer, Boolean statusCheFer, Set chemicalFertilzerCompositions, Set chemicalFertilizationses) {
       this.nameCheFer = nameCheFer;
       this.statusCheFer = statusCheFer;
       this.chemicalFertilzerCompositions = chemicalFertilzerCompositions;
       this.chemicalFertilizationses = chemicalFertilizationses;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id_che_fer", unique=true, nullable=false)
    public Integer getIdCheFer() {
        return this.idCheFer;
    }
    
    public void setIdCheFer(Integer idCheFer) {
        this.idCheFer = idCheFer;
    }
    
    @Column(name="name_che_fer", length=45)
    public String getNameCheFer() {
        return this.nameCheFer;
    }
    
    public void setNameCheFer(String nameCheFer) {
        this.nameCheFer = nameCheFer;
    }
    
    @Column(name="status_che_fer")
    public Boolean getStatusCheFer() {
        return this.statusCheFer;
    }
    
    public void setStatusCheFer(Boolean statusCheFer) {
        this.statusCheFer = statusCheFer;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="chemicalFertilizers")
    public Set getChemicalFertilzerCompositions() {
        return this.chemicalFertilzerCompositions;
    }
    
    public void setChemicalFertilzerCompositions(Set chemicalFertilzerCompositions) {
        this.chemicalFertilzerCompositions = chemicalFertilzerCompositions;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="chemicalFertilizers")
    public Set getChemicalFertilizationses() {
        return this.chemicalFertilizationses;
    }
    
    public void setChemicalFertilizationses(Set chemicalFertilizationses) {
        this.chemicalFertilizationses = chemicalFertilizationses;
    }




}


